import axios from '@/utils/request';

export default {
    //注册
    insert(user){
        return axios({
            url:'/User/insertOneUser',
            method:'post',
            data:user            
        })
    },
    getOne(name,pass){
        return axios({
            url:`/User/getOneUser`,
            method:'get',
            params:{
                'name':name,
                'pass':pass
            }       
        })
    },
    getuserbyid(id){
        return axios({
            url:'/User',
            method:'get',
            params:{
                'id':id
            }
        })
    }
  


}
